<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.17"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>QuEST: mt19937ar.c File Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="style.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand"><img alt="Logo" src="logo.png"/></a>
                    <a class="navbar-brand"><b>QuEST</b> v3.2.0<br>The Quantum Exact Simulation Toolkit</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d522931ffa1371640980b621734a4381.html">Users</a></li><li class="navelem"><a class="el" href="dir_70834f0dcd10de01d2e35ab402a2238e.html">tysonjones</a></li><li class="navelem"><a class="el" href="dir_1957401ef452be7528010ba0f4832a45.html">Desktop</a></li><li class="navelem"><a class="el" href="dir_dee4414d5d72b49a9429e079789ffd08.html">GithubRepos</a></li><li class="navelem"><a class="el" href="dir_a89b43d59316bb5045aa22bb53a67d29.html">QuEST</a></li><li class="navelem"><a class="el" href="dir_f1fe56bf5ef15ff22696c757278c6962.html">QuEST</a></li><li class="navelem"><a class="el" href="dir_757750313c878cfe3b7d1ade55b4b819.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">mt19937ar.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
</div>
<p><a href="mt19937ar_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a4ddd8cab3564b7a86a4b0e52ba08f70e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#a4ddd8cab3564b7a86a4b0e52ba08f70e">LOWER_MASK</a>&#160;&#160;&#160;0x7fffffffUL /* least significant r bits */</td></tr>
<tr class="separator:a4ddd8cab3564b7a86a4b0e52ba08f70e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52037c938e3c1b126c6277da5ca689d0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#a52037c938e3c1b126c6277da5ca689d0">M</a>&#160;&#160;&#160;397</td></tr>
<tr class="separator:a52037c938e3c1b126c6277da5ca689d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a376c3581bae3c2367fc9ce694e5a8949"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#a376c3581bae3c2367fc9ce694e5a8949">MATRIX_A</a>&#160;&#160;&#160;0x9908b0dfUL   /* constant vector a */</td></tr>
<tr class="separator:a376c3581bae3c2367fc9ce694e5a8949"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0240ac851181b84ac374872dc5434ee4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>&#160;&#160;&#160;624</td></tr>
<tr class="separator:a0240ac851181b84ac374872dc5434ee4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39bc458849360f8f371b54c4365d397f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#a39bc458849360f8f371b54c4365d397f">UPPER_MASK</a>&#160;&#160;&#160;0x80000000UL /* most significant w-r bits */</td></tr>
<tr class="separator:a39bc458849360f8f371b54c4365d397f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6339fb46fb539f173518a6367f6616bd"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#a6339fb46fb539f173518a6367f6616bd">genrand_int31</a> (void)</td></tr>
<tr class="separator:a6339fb46fb539f173518a6367f6616bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b30ec504bc40c51320d14da9dfab43b"><td class="memItemLeft" align="right" valign="top">unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#a2b30ec504bc40c51320d14da9dfab43b">genrand_int32</a> (void)</td></tr>
<tr class="separator:a2b30ec504bc40c51320d14da9dfab43b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac94ab75771800274ed1a2bedeca86f04"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#ac94ab75771800274ed1a2bedeca86f04">genrand_real1</a> (void)</td></tr>
<tr class="separator:ac94ab75771800274ed1a2bedeca86f04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ee58afbdf91669ff8a15fc19e627bea"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#a4ee58afbdf91669ff8a15fc19e627bea">genrand_real2</a> (void)</td></tr>
<tr class="separator:a4ee58afbdf91669ff8a15fc19e627bea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1a90aa68ebfcd712cb05ed9061ecf44"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#ab1a90aa68ebfcd712cb05ed9061ecf44">genrand_real3</a> (void)</td></tr>
<tr class="separator:ab1a90aa68ebfcd712cb05ed9061ecf44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac821d41970276e53e85bde08b24536b8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#ac821d41970276e53e85bde08b24536b8">genrand_res53</a> (void)</td></tr>
<tr class="separator:ac821d41970276e53e85bde08b24536b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1283f9b1ed571332f5ffe53545ffc16"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#ac1283f9b1ed571332f5ffe53545ffc16">init_by_array</a> (unsigned long init_key[], int key_length)</td></tr>
<tr class="separator:ac1283f9b1ed571332f5ffe53545ffc16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57af1d02a3fb56a949fb4c258f0bc066"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#a57af1d02a3fb56a949fb4c258f0bc066">init_genrand</a> (unsigned long s)</td></tr>
<tr class="separator:a57af1d02a3fb56a949fb4c258f0bc066"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:aff3cefd0011b487c57a7af7cb3bc499f"><td class="memItemLeft" align="right" valign="top">static unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a> [<a class="el" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>]</td></tr>
<tr class="separator:aff3cefd0011b487c57a7af7cb3bc499f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0893639c022032e006e5b13378f7b4b2"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a> =<a class="el" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>+1</td></tr>
<tr class="separator:a0893639c022032e006e5b13378f7b4b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a4ddd8cab3564b7a86a4b0e52ba08f70e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ddd8cab3564b7a86a4b0e52ba08f70e">&#9670;&nbsp;</a></span>LOWER_MASK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOWER_MASK&#160;&#160;&#160;0x7fffffffUL /* least significant r bits */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00051">51</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>

</div>
</div>
<a id="a52037c938e3c1b126c6277da5ca689d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52037c938e3c1b126c6277da5ca689d0">&#9670;&nbsp;</a></span>M</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define M&#160;&#160;&#160;397</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00048">48</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>

</div>
</div>
<a id="a376c3581bae3c2367fc9ce694e5a8949"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a376c3581bae3c2367fc9ce694e5a8949">&#9670;&nbsp;</a></span>MATRIX_A</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MATRIX_A&#160;&#160;&#160;0x9908b0dfUL   /* constant vector a */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00049">49</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>

</div>
</div>
<a id="a0240ac851181b84ac374872dc5434ee4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0240ac851181b84ac374872dc5434ee4">&#9670;&nbsp;</a></span>N</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define N&#160;&#160;&#160;624</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00047">47</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>

</div>
</div>
<a id="a39bc458849360f8f371b54c4365d397f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39bc458849360f8f371b54c4365d397f">&#9670;&nbsp;</a></span>UPPER_MASK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UPPER_MASK&#160;&#160;&#160;0x80000000UL /* most significant w-r bits */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00050">50</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a6339fb46fb539f173518a6367f6616bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6339fb46fb539f173518a6367f6616bd">&#9670;&nbsp;</a></span>genrand_int31()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long genrand_int31 </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00144">144</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;{</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordflow">return</span> (<span class="keywordtype">long</span>)(<a class="code" href="mt19937ar_8c.html#a2b30ec504bc40c51320d14da9dfab43b">genrand_int32</a>()&gt;&gt;1);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="mt19937ar_8c_source.html#l00106">genrand_int32()</a>.</p>

</div>
</div>
<a id="a2b30ec504bc40c51320d14da9dfab43b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b30ec504bc40c51320d14da9dfab43b">&#9670;&nbsp;</a></span>genrand_int32()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long genrand_int32 </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00106">106</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;{</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> y;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> mag01[2]={0x0UL, <a class="code" href="mt19937ar_8c.html#a376c3581bae3c2367fc9ce694e5a8949">MATRIX_A</a>};</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="comment">/* mag01[x] = x * MATRIX_A  for x=0,1 */</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a> &gt;= <a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>) { <span class="comment">/* generate N words at one time */</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keywordtype">int</span> kk;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a> == <a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>+1)   <span class="comment">/* if init_genrand() has not been called, */</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;            <a class="code" href="mt19937ar_8c.html#a57af1d02a3fb56a949fb4c258f0bc066">init_genrand</a>(5489UL); <span class="comment">/* a default initial seed is used */</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        <span class="keywordflow">for</span> (kk=0;kk&lt;<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>-<a class="code" href="mt19937ar_8c.html#a52037c938e3c1b126c6277da5ca689d0">M</a>;kk++) {</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            y = (<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[kk]&amp;<a class="code" href="mt19937ar_8c.html#a39bc458849360f8f371b54c4365d397f">UPPER_MASK</a>)|(<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[kk+1]&amp;<a class="code" href="mt19937ar_8c.html#a4ddd8cab3564b7a86a4b0e52ba08f70e">LOWER_MASK</a>);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;            <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[kk] = <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[kk+<a class="code" href="mt19937ar_8c.html#a52037c938e3c1b126c6277da5ca689d0">M</a>] ^ (y &gt;&gt; 1) ^ mag01[y &amp; 0x1UL];</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <span class="keywordflow">for</span> (;kk&lt;<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1;kk++) {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            y = (<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[kk]&amp;<a class="code" href="mt19937ar_8c.html#a39bc458849360f8f371b54c4365d397f">UPPER_MASK</a>)|(<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[kk+1]&amp;<a class="code" href="mt19937ar_8c.html#a4ddd8cab3564b7a86a4b0e52ba08f70e">LOWER_MASK</a>);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[kk] = <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[kk+(<a class="code" href="mt19937ar_8c.html#a52037c938e3c1b126c6277da5ca689d0">M</a>-<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>)] ^ (y &gt;&gt; 1) ^ mag01[y &amp; 0x1UL];</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        }</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        y = (<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1]&amp;<a class="code" href="mt19937ar_8c.html#a39bc458849360f8f371b54c4365d397f">UPPER_MASK</a>)|(<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[0]&amp;<a class="code" href="mt19937ar_8c.html#a4ddd8cab3564b7a86a4b0e52ba08f70e">LOWER_MASK</a>);</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1] = <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[<a class="code" href="mt19937ar_8c.html#a52037c938e3c1b126c6277da5ca689d0">M</a>-1] ^ (y &gt;&gt; 1) ^ mag01[y &amp; 0x1UL];</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        <a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a> = 0;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    }</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;  </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    y = <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[<a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a>++];</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="comment">/* Tempering */</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    y ^= (y &gt;&gt; 11);</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    y ^= (y &lt;&lt; 7) &amp; 0x9d2c5680UL;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    y ^= (y &lt;&lt; 15) &amp; 0xefc60000UL;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    y ^= (y &gt;&gt; 18);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordflow">return</span> y;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="mt19937ar_8c_source.html#l00061">init_genrand()</a>, <a class="el" href="mt19937ar_8c_source.html#l00051">LOWER_MASK</a>, <a class="el" href="mt19937ar_8c_source.html#l00048">M</a>, <a class="el" href="mt19937ar_8c_source.html#l00049">MATRIX_A</a>, <a class="el" href="mt19937ar_8c_source.html#l00057">mt</a>, <a class="el" href="mt19937ar_8c_source.html#l00058">mti</a>, <a class="el" href="mt19937ar_8c_source.html#l00047">N</a>, and <a class="el" href="mt19937ar_8c_source.html#l00050">UPPER_MASK</a>.</p>

<p class="reference">Referenced by <a class="el" href="mt19937ar_8c_source.html#l00144">genrand_int31()</a>, <a class="el" href="mt19937ar_8c_source.html#l00150">genrand_real1()</a>, <a class="el" href="mt19937ar_8c_source.html#l00157">genrand_real2()</a>, <a class="el" href="mt19937ar_8c_source.html#l00164">genrand_real3()</a>, and <a class="el" href="mt19937ar_8c_source.html#l00171">genrand_res53()</a>.</p>

</div>
</div>
<a id="ac94ab75771800274ed1a2bedeca86f04"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac94ab75771800274ed1a2bedeca86f04">&#9670;&nbsp;</a></span>genrand_real1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double genrand_real1 </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00150">150</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;{</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="mt19937ar_8c.html#a2b30ec504bc40c51320d14da9dfab43b">genrand_int32</a>()*(1.0/4294967295.0); </div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="comment">/* divided by 2^32-1 */</span> </div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="mt19937ar_8c_source.html#l00106">genrand_int32()</a>.</p>

<p class="reference">Referenced by <a class="el" href="QuEST__common_8c_source.html#l00155">generateMeasurementOutcome()</a>.</p>

</div>
</div>
<a id="a4ee58afbdf91669ff8a15fc19e627bea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ee58afbdf91669ff8a15fc19e627bea">&#9670;&nbsp;</a></span>genrand_real2()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double genrand_real2 </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00157">157</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;{</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="mt19937ar_8c.html#a2b30ec504bc40c51320d14da9dfab43b">genrand_int32</a>()*(1.0/4294967296.0); </div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="comment">/* divided by 2^32 */</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="mt19937ar_8c_source.html#l00106">genrand_int32()</a>.</p>

</div>
</div>
<a id="ab1a90aa68ebfcd712cb05ed9061ecf44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1a90aa68ebfcd712cb05ed9061ecf44">&#9670;&nbsp;</a></span>genrand_real3()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double genrand_real3 </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00164">164</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;{</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordflow">return</span> (((<span class="keywordtype">double</span>)<a class="code" href="mt19937ar_8c.html#a2b30ec504bc40c51320d14da9dfab43b">genrand_int32</a>()) + 0.5)*(1.0/4294967296.0); </div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="comment">/* divided by 2^32 */</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="mt19937ar_8c_source.html#l00106">genrand_int32()</a>.</p>

</div>
</div>
<a id="ac821d41970276e53e85bde08b24536b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac821d41970276e53e85bde08b24536b8">&#9670;&nbsp;</a></span>genrand_res53()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double genrand_res53 </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00171">171</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;{ </div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> a=<a class="code" href="mt19937ar_8c.html#a2b30ec504bc40c51320d14da9dfab43b">genrand_int32</a>()&gt;&gt;5, b=<a class="code" href="mt19937ar_8c.html#a2b30ec504bc40c51320d14da9dfab43b">genrand_int32</a>()&gt;&gt;6; </div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordflow">return</span>(a*67108864.0+b)*(1.0/9007199254740992.0); </div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;} </div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="mt19937ar_8c_source.html#l00106">genrand_int32()</a>.</p>

</div>
</div>
<a id="ac1283f9b1ed571332f5ffe53545ffc16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1283f9b1ed571332f5ffe53545ffc16">&#9670;&nbsp;</a></span>init_by_array()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_by_array </td>
          <td>(</td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>init_key</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>key_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00080">80</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;{</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordtype">int</span> i, j, k;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <a class="code" href="mt19937ar_8c.html#a57af1d02a3fb56a949fb4c258f0bc066">init_genrand</a>(19650218UL);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    i=1; j=0;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    k = (<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>&gt;key_length ? <a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a> : key_length);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordflow">for</span> (; k; k--) {</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[i] = (<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[i] ^ ((<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[i-1] ^ (<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[i-1] &gt;&gt; 30)) * 1664525UL))</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;          + init_key[j] + j; <span class="comment">/* non linear */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[i] &amp;= 0xffffffffUL; <span class="comment">/* for WORDSIZE &gt; 32 machines */</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        i++; j++;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="keywordflow">if</span> (i&gt;=<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>) { <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[0] = <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1]; i=1; }</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keywordflow">if</span> (j&gt;=key_length) j=0;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordflow">for</span> (k=<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1; k; k--) {</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[i] = (<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[i] ^ ((<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[i-1] ^ (<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[i-1] &gt;&gt; 30)) * 1566083941UL))</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;          - i; <span class="comment">/* non linear */</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[i] &amp;= 0xffffffffUL; <span class="comment">/* for WORDSIZE &gt; 32 machines */</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        i++;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <span class="keywordflow">if</span> (i&gt;=<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>) { <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[0] = <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1]; i=1; }</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    }</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[0] = 0x80000000UL; <span class="comment">/* MSB is 1; assuring non-zero initial array */</span> </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="mt19937ar_8c_source.html#l00061">init_genrand()</a>, <a class="el" href="mt19937ar_8c_source.html#l00057">mt</a>, and <a class="el" href="mt19937ar_8c_source.html#l00047">N</a>.</p>

<p class="reference">Referenced by <a class="el" href="QuEST__common_8c_source.html#l00209">seedQuEST()</a>, and <a class="el" href="QuEST__cpu__distributed_8c_source.html#l01318">seedQuESTDefault()</a>.</p>

</div>
</div>
<a id="a57af1d02a3fb56a949fb4c258f0bc066"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57af1d02a3fb56a949fb4c258f0bc066">&#9670;&nbsp;</a></span>init_genrand()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_genrand </td>
          <td>(</td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00061">61</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;{</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[0]= s &amp; 0xffffffffUL;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a>=1; <a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a>&lt;<a class="code" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>; <a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a>++) {</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[<a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a>] = </div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;            (1812433253UL * (<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[<a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a>-1] ^ (<a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[<a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a>-1] &gt;&gt; 30)) + <a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a>); </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="comment">/* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="comment">/* In the previous versions, MSBs of the seed affect   */</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="comment">/* only MSBs of the array mt[].                        */</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="comment">/* 2002/01/09 modified by Makoto Matsumoto             */</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <a class="code" href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a>[<a class="code" href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a>] &amp;= 0xffffffffUL;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="comment">/* for &gt;32 bit machines */</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    }</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="mt19937ar_8c_source.html#l00057">mt</a>, <a class="el" href="mt19937ar_8c_source.html#l00058">mti</a>, and <a class="el" href="mt19937ar_8c_source.html#l00047">N</a>.</p>

<p class="reference">Referenced by <a class="el" href="mt19937ar_8c_source.html#l00106">genrand_int32()</a>, and <a class="el" href="mt19937ar_8c_source.html#l00080">init_by_array()</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="aff3cefd0011b487c57a7af7cb3bc499f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff3cefd0011b487c57a7af7cb3bc499f">&#9670;&nbsp;</a></span>mt</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long mt[<a class="el" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00057">57</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="mt19937ar_8c_source.html#l00106">genrand_int32()</a>, <a class="el" href="mt19937ar_8c_source.html#l00080">init_by_array()</a>, and <a class="el" href="mt19937ar_8c_source.html#l00061">init_genrand()</a>.</p>

</div>
</div>
<a id="a0893639c022032e006e5b13378f7b4b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0893639c022032e006e5b13378f7b4b2">&#9670;&nbsp;</a></span>mti</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int mti =<a class="el" href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>+1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="mt19937ar_8c_source.html#l00058">58</a> of file <a class="el" href="mt19937ar_8c_source.html">mt19937ar.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="mt19937ar_8c_source.html#l00106">genrand_int32()</a>, and <a class="el" href="mt19937ar_8c_source.html#l00061">init_genrand()</a>.</p>

</div>
</div>
</div><!-- contents -->
<div class="ttc" id="amt19937ar_8c_html_a2b30ec504bc40c51320d14da9dfab43b"><div class="ttname"><a href="mt19937ar_8c.html#a2b30ec504bc40c51320d14da9dfab43b">genrand_int32</a></div><div class="ttdeci">unsigned long genrand_int32(void)</div><div class="ttdef"><b>Definition:</b> <a href="mt19937ar_8c_source.html#l00106">mt19937ar.c:106</a></div></div>
<div class="ttc" id="amt19937ar_8c_html_a57af1d02a3fb56a949fb4c258f0bc066"><div class="ttname"><a href="mt19937ar_8c.html#a57af1d02a3fb56a949fb4c258f0bc066">init_genrand</a></div><div class="ttdeci">void init_genrand(unsigned long s)</div><div class="ttdef"><b>Definition:</b> <a href="mt19937ar_8c_source.html#l00061">mt19937ar.c:61</a></div></div>
<div class="ttc" id="amt19937ar_8c_html_a52037c938e3c1b126c6277da5ca689d0"><div class="ttname"><a href="mt19937ar_8c.html#a52037c938e3c1b126c6277da5ca689d0">M</a></div><div class="ttdeci">#define M</div><div class="ttdef"><b>Definition:</b> <a href="mt19937ar_8c_source.html#l00048">mt19937ar.c:48</a></div></div>
<div class="ttc" id="amt19937ar_8c_html_a376c3581bae3c2367fc9ce694e5a8949"><div class="ttname"><a href="mt19937ar_8c.html#a376c3581bae3c2367fc9ce694e5a8949">MATRIX_A</a></div><div class="ttdeci">#define MATRIX_A</div><div class="ttdef"><b>Definition:</b> <a href="mt19937ar_8c_source.html#l00049">mt19937ar.c:49</a></div></div>
<div class="ttc" id="amt19937ar_8c_html_aff3cefd0011b487c57a7af7cb3bc499f"><div class="ttname"><a href="mt19937ar_8c.html#aff3cefd0011b487c57a7af7cb3bc499f">mt</a></div><div class="ttdeci">static unsigned long mt[N]</div><div class="ttdef"><b>Definition:</b> <a href="mt19937ar_8c_source.html#l00057">mt19937ar.c:57</a></div></div>
<div class="ttc" id="amt19937ar_8c_html_a0893639c022032e006e5b13378f7b4b2"><div class="ttname"><a href="mt19937ar_8c.html#a0893639c022032e006e5b13378f7b4b2">mti</a></div><div class="ttdeci">static int mti</div><div class="ttdef"><b>Definition:</b> <a href="mt19937ar_8c_source.html#l00058">mt19937ar.c:58</a></div></div>
<div class="ttc" id="amt19937ar_8c_html_a0240ac851181b84ac374872dc5434ee4"><div class="ttname"><a href="mt19937ar_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a></div><div class="ttdeci">#define N</div><div class="ttdef"><b>Definition:</b> <a href="mt19937ar_8c_source.html#l00047">mt19937ar.c:47</a></div></div>
<div class="ttc" id="amt19937ar_8c_html_a39bc458849360f8f371b54c4365d397f"><div class="ttname"><a href="mt19937ar_8c.html#a39bc458849360f8f371b54c4365d397f">UPPER_MASK</a></div><div class="ttdeci">#define UPPER_MASK</div><div class="ttdef"><b>Definition:</b> <a href="mt19937ar_8c_source.html#l00050">mt19937ar.c:50</a></div></div>
<div class="ttc" id="amt19937ar_8c_html_a4ddd8cab3564b7a86a4b0e52ba08f70e"><div class="ttname"><a href="mt19937ar_8c.html#a4ddd8cab3564b7a86a4b0e52ba08f70e">LOWER_MASK</a></div><div class="ttdeci">#define LOWER_MASK</div><div class="ttdef"><b>Definition:</b> <a href="mt19937ar_8c_source.html#l00051">mt19937ar.c:51</a></div></div>
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
</body>
        <script type="text/javascript" src="boot.js"></script>
</html>
